package com.zhao.dota.struct;

import lombok.Data;

@Data
public class SimpleParameters {

    private String search;

    private Integer current;

    private Integer size;

    public SimpleParameters() {
        this(1, 10);
    }

    public SimpleParameters(Integer current, Integer size) {
        this.current = current;
        this.size = size;
    }

    public void setSearch(String search) {
        if (search != null) {
            search = search.trim();
        }
        this.search = search;
    }
}
